home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 May / PC Plus Super CD Issue 127 (May 1997).iso / wacom / win / ntintel / copyserv.bat next >
Encoding:
DOS Batch File  |  1996-07-23  |  1.1 KB  |  41 lines

  1. @echo off
  2. rem -------------------------------------------------------------
  3. rem Name : COPYSERV.BAT
  4. rem Purpose : Copies NT service executables.  Before copying,
  5. rem           turns off services.  After copying, turns services
  6. rem           back on.
  7. rem Usage : COPYSERV %1 %2 %3 %4
  8. rem         %1 - Source dir
  9. rem         %2 - Dest dir
  10. rem         %3 - if "1", then copy wacomkey.exe
  11. rem         %4 - if "1", then copy wintab32.exe
  12. rem Notes : Both wacomkey and wintab32 services need to be stopped.
  13. rem         The copy fails if MSSETUP copy functions are used.  The
  14. rem         services must be stopped/started from a DOS box.  It
  15. rem         fails if done from the control panel.
  16. rem Author : Jim Choate
  17. rem History : 5/30/96.  Created.
  18. rem ------------------------------------------------------------
  19.  
  20. echo Copying NT Services.  This takes a few minutes...
  21.  
  22. net stop wacomkey
  23. net stop wintab32
  24.  
  25. if not "%3"=="1" goto Skip1
  26.  
  27. del %2wacomkey.exe
  28. ren %2wacomkey.tmp wacomkey.exe
  29.  
  30. :Skip1
  31.  
  32. if not "%4"=="1" goto Skip2
  33.  
  34. del %2wintab32.exe
  35. ren %2wintab32.tmp wintab32.exe
  36.  
  37. :Skip2
  38.  
  39. net start wintab32
  40. net start wacomkey
  41.